package com.shanzmoo.db.sys.service;

import com.shanzmoo.db.sys.entity.RoleEntity;
import com.shanzmoo.db.sys.entity.UserRoleEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 用户角色关系表 服务类
 * </p>
 *
 * @author Gzhao
 * @since 2020-11-10
 */
public interface IUserRoleService extends IService<UserRoleEntity> {

    List<RoleEntity> getUserRoles(Integer userId);

    void saveUserRoles(Integer userId, List<Integer> roleIds);
}
